package com.wyh.docker.dao;

import com.wyh.docker.model.Student;
import org.springframework.stereotype.Repository;

/**
 * @author wuyuhan
 * @date 2021/5/30 20:06
 */
@Repository
public interface StudentDao {
    /**
     * 新增
     * @author wyh
     * @date 2021/05/30
     **/
    int insert(Student student);

    /**
     * 刪除
     * @author wyh
     * @date 2021/05/30
     **/
    int delete(int id);

    /**
     * 更新
     * @author wyh
     * @date 2021/05/30
     **/
    int update(Student student);

    /**
     * 查询 根据主键 id 查询
     * @author wyh
     * @date 2021/05/30
     **/
    Student load(int id);
}
